package com.dxy.yesas2020goals.study.partone.disignpattern.singletonpattern.enumsingleton;

/**
 * @author victorydeng
 * @Classname EnumSingleton
 * @Description TODO
 * @Date 2020/2/28 20:27
 * @Created by victorydeng
 */
public enum  EnumSingleton {
  /**
   * 枚举实例
   */
  INSTANCE;

  private Object data;

  public Object getData() {
    return data;
  }

  public void setData(Object data) {
    this.data = data;
  }

  public static EnumSingleton getIns() {
    return INSTANCE;
  }

}
